package com.cxxx.guns.modular.backend.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cczhang
 * @since 2018-09-14
 */
@TableName("tbl_teachers")
public class Teachers extends Model<Teachers> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 姓名
     */
    private String name;
    /**
     * 岗位
     */
    private String station;
    /**
     * 职称
     */
    private String title;
    /**
     * 座右铭
     */
    private String motto;
    /**
     * 个人信息
     */
    private String information;

    /**
     * 师资分类 id
     */
    @TableField("teachers_class")
    private Integer teachersClass;

    /**
     * 创建时间 
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public Integer getTeachersClass() {
        return teachersClass;
    }

    public void setTeachersClass(Integer teachersClass) {
        this.teachersClass = teachersClass;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Teachers{" +
        "id=" + id +
        ", avatar=" + avatar +
        ", name=" + name +
        ", station=" + station +
        ", title=" + title +
        ", motto=" + motto +
        ", information=" + information +
        ", createTime=" + createTime +
        "}";
    }
}
